home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HyperHackers.cpt / Hyper-Hackers Queue 1.0 / card_24158.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  54 lines

  1. -- card: 24158 from stack: in.0
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3797
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10.  
  11. From: cs2531as@charon.unm.edu (Andrew Stone)
  12.  
  13. Date: 29 Feb 88 16:01:18 GMT
  14.  
  15.     Hi. A voracious comp.sys.mac.* reader, I could not help but 
  16. notice the monthly return of "closefield message not sent" gripe.
  17.  
  18. Maybe, Apple's own kludge from Technical Note #169 will be of interest:
  19.  
  20. If you have to have a closeField message for error handling or whatever,
  21. try adding these scripts to the specified targets:
  22.  
  23. card script:    on openCard
  24.           global myField
  25.  
  26.           put bkgnd field 1 into myField
  27.         end openCard
  28.  
  29. Field script:    on closeField
  30.           global myField
  31.  
  32.           put bkgnd field 1 into myField
  33.         end closeField
  34.  
  35. Button script:    on mouseDown - or mouseUp Let's assume this is bckgnd button 2 
  36.           global myField 
  37.  
  38.           if myField is not bkgnd field 1 then]  -option return
  39.             send closeField to bckgnd field 1
  40.         end mouseDown
  41.  
  42. "Then, when the user edits bkgnd field 1 and then clicks on bckgnd button 2,
  43. HC will send the closeField message to bckgnd field 1 if and only if the 
  44. user has changed its contents and the closeField message has not already 
  45. been sent."
  46.  
  47. BTW- have we decided which char to use for option-return (soft return)?
  48.     "]" kind of looks like it.
  49.  
  50.  
  51.  
  52. -- part contents for background part 45
  53. ----- text -----
  54. closeField emulator